package com.zang.blogz.config;


import org.springframework.amqp.core.Queue;
import org.springframework.boot.autoconfigure.mail.MailProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.mail.MailException;
import org.springframework.mail.SimpleMailMessage;
import org.springframework.mail.javamail.JavaMailSender;
import org.springframework.mail.javamail.JavaMailSenderImpl;
import org.springframework.mail.javamail.MimeMessagePreparator;

import javax.mail.internet.MimeMessage;
import java.io.InputStream;

/**
 * @Author: 橘贝贝
 * @Description:
 * @DateTime: 2022/6/29 18:05
 **/
@Configuration
public class RabbitMQConfig {

    @Bean
    public Queue emailQueue() {

        return new Queue("zangblog-queue", true);
    }

    @Bean
    public Queue zEmailQueue() {

        return new Queue("zang-queue", true);
    }

    @Bean Queue verificationCodeQueue(){

        return new Queue("verificationCode-queue",true);
    }

}
